<div *ngIf="hero">

  <h2>{{hero.title}}的详细资料</h2>
  <div>
    <span>级别: </span>{{hero.level}}级
  </div>
  <div>
    <span>排名: </span>第{{hero.rank}}位
  </div>
  <div>
    <label>英雄名：
      <input [(ngModel)]="hero.title" placeholder="英雄名">
    </label>
  </div>
  <div>
    <label>本名：
      <input [(ngModel)]="hero.name" placeholder="本名">
    </label>
  </div>

  <button (click)="goBack()">go back</button>

</div>